package com.cloud.listener;

import com.cloud.repository.redis.RedisRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;

/**
 * Created by Administrator on 2017/11/26.
 */
//@Component
public class StartupListener implements CommandLineRunner {
    Logger logger = LoggerFactory.getLogger(StartupListener.class);
    @Autowired
    private RedisRepository redisRepository;
    @Override
    public void run(String... strings) throws Exception {
        if (!redisRepository.exists("area:list")){
        }
    }
}
